package com.example.springsecurity.cn.paranoid.controller;


import com.example.springsecurity.cn.paranoid.bean.User;
import com.example.springsecurity.cn.paranoid.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
public class UserController {

    @Resource
    private UserService service;

    @RequestMapping("/byId")
    public User queryUserById(int id){
        return service.queryUserById(id);
    }

}
